package com.itheima.a04oopextendsdemo4;

public class Cooker extends Yuangong{

    public Cooker() {
    }

    public Cooker(String id, String name, double gongzi) {
        super(id, name, gongzi);
    }

    @Override
    public void work() {
        System.out.println("烹饪美食");
    }

    @Override
    public void eat() {
        System.out.println("吃米饭");
    }
}
